<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$sql="SELECT * FROM ".$PACTS_cfg->individualtablename;
//echo "$sql";
$result = mysql_query($sql,$PACTS_cfg->dblink);
$totalIndvrecords = mysql_num_rows($result);

$result = null;

$sql="SELECT * FROM ".$PACTS_cfg->familytablename;
$result = mysql_query($sql,$PACTS_cfg->dblink);

$totalFmlyrecords = mysql_num_rows($result);

echo '<div id="page_header">'."\n";
echo '<ul><li class="titlename2">'.'Welcome to '.$PACTS_cfg->SoftwareShortName.'</li>'."\n";
echo '</ul>'."\n";
echo '</div>'."\n";

echo '<div id="main_content">'."\n";


echo '<p>Use the menu on the left to view, edit, delete and add new entries to
        the contacts database. You can also use the search function to search
        entries by last name, first name, address and email.
        You can also use the list features which will display a sorted
        list of all the entries in the database.<br /><br />For a more complete
        instruction on how to use GPAC Database you can use the help link in the menu.</p>'."\n";
echo '</div>';
echo '<p class="mediumtxt">Your version: '.$PACTS_cfg->SoftwareVersion.'</p>'."\n";
echo '<hr color="#C0C0C0" width="90%" size="1" />'."\n";
echo '<p class="mediumtxt">Total Families in database: '.$totalFmlyrecords.'</p>'."\n";
echo '<p class="mediumtxt">Total Individuals in database: '.$totalIndvrecords.'</p>'."\n";


?>
